<template>
  <div class="CustomScreen">
    <el-button type="primary" size="small" @click="dialogFormVisible = true">制作班牌</el-button>
    <el-row :gutter="20">
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>

    </el-row>
    <el-dialog title="制作班牌" :visible.sync="dialogFormVisible" width="40%">
      <el-form :model="form">
        <el-form-item label="模块名称" :label-width="formLabelWidth">
          <el-input type = "text" v-model="form.name" placeholder="输入云屏模块名称" maxlength="6" style="width: 70%;"></el-input>
        </el-form-item>
        <el-form-item label="分辨率" :label-width="formLabelWidth">
          <el-select v-model="form.dpi" placeholder="请选择分辨率">
            <el-option label="区域一" value="shanghai"></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
      </div>
    </el-dialog>

  </div>
</template>

<script>
export default {
  name: 'CustomScreen',
  data () {
    return {
      dialogFormVisible: false,
      form: {
        name: '',
        dpi: ''
      },
      formLabelWidth: '100px',
      boardList: [{

      }]
    }
  },
  methods: {
    dataInit () {
      let data = {
        organization_id: this.$storage.get('orgId')
      };
      this.$api.customBoardList(data).then(res => {
        console.log(res)
      })
    }
  },
  created () {

  },
  mounted () {
    this.dataInit()
  }
}
</script>
<style scoped lang="scss">
  .el-row {
    margin-bottom: 20px;
  &:last-child {
     margin-bottom: 0;
   }
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>
